# -*- codeing = utf-8 -*-
# @Time: 2022/1/28 14:56
# @Author: Foxhuty
# @File: spider_002.py
# @Software: PyCharm
# @Based on python 3.9
import json

with open('data/corona_virus_china.json', encoding='utf-8') as fp:
    json_list = json.load(fp)

# print(json_list[0])
for one_day in json_list:
    if one_day['provinceName'] == '四川省':
        print(f"{one_day['dateId']}:{one_day['provinceName']}:共计确诊{one_day['confirmedCount']}")
        # for item in one_day['cities']:
        #     print(f"{item['cityName']}:共计确诊{item['currentConfirmedCount']}人")











